import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router"

const routes: Array<RouteRecordRaw> = [

    {
        path: '/',
        redirect: '/home1'
    },
    {
        path: '/home1',
        name: 'Home',
        component:() => import('../components/home1.vue')
    },
    {
        path:'/detials',
        name:'Details',
        component:() => import('../components/detials.vue')
    },
    {
        path:'/subject',
        name:'Subject',
        component:() => import('../components/subject.vue')
    },
    {
        path:'/course',
        name:'Course',
        component:() => import('../components/course.vue')
    }
    
]


const router = createRouter({
    history:createWebHashHistory(),
    routes
})


export default router